package com.bosicloud.cmb.ibp.api.manager.dao;

import com.bosicloud.cmb.ibp.api.manager.commom.model.IbpApiUsagePlan;
import com.bosicloud.cmb.ibp.api.manager.commom.vo.IbpUserApiKeyVO;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * @author Jack Peng / ziliang.peng@bosicloud.com
 */
public interface IbpApiUsagePlanMapper extends Mapper<IbpApiUsagePlan> {

    Integer insertIbpApiUsagePlan(IbpApiUsagePlan ibpApiUsagePlan);

    /**
     * IbpApiUsagePlan列表
     *
     * @return
     */
    List<IbpApiUsagePlan> usagePlanList(@Param("apiId") Integer apiId);

    List<IbpUserApiKeyVO> searchUserApiKeyListByUserId(@Param("userId") Integer userId);


}
